
function ofNumber(classId){
	AjaxTool("GET", "/teacher/class/ofNumber/"+classId, null, "html", function(
			data) {
		// 返回内容
		if (data) {
			$("#contentDiv").html(data);
		}
		;
	});
}
function	getTeacherTabContent(tag, tabId, courseObjId){
	var callbackFun = function(htmlContent){
		$("#contentDiv").html(htmlContent);
	};
	var selectedCourseId = -1;
	if(courseObjId){
		selectedCourseId =  $('#' + courseObjId).val()
	}
	var currClassId=$("#currClassId").val();
	AjaxToolNoEncode("get","/teacher/"+tag+"/" + tabId + "/" + selectedCourseId + "/0/" + QUIZ_PAGE_SIZE+"?classId="+currClassId,{menu:tag},"html",callbackFun);
}

function classQuestion(classId){
	postdata={"classId":classId}
	AjaxTool("GET", "/teacher/question/ofquest/-1/0/10", postdata, "html", function(
			data) {
		// 返回内容
		if (data) {
			$("#contentDiv").html(data);
		}
		;
	});
}

function replayQuestion(questionId) {
	$.ajax({
		url : "/student/question//replyQuestion/"+questionId+"/1",
		type : 'post',
		data : {
			"answerContent" : $("#replayContent").val()
		},
		dataType : 'json',
		success : function(data, status) {
			if (status == "success") {
				if (data.success == "true") {
					alert("回复成功！");
					location.reload()
				} else {
					alert("回复失败， 请重试");
				}
			}
		},
		error : function(xhr, textStatus, errorThrown) {
			alert("点赞失败， 请重试");
		}
	});
}